package com.ssy.lingxi.platform.manage.model.response;

import com.ssy.lingxi.platform.manage.entity.content.ContentInformation;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;
import java.util.Map;

/**
 * 资讯管理 - 详情 - 返回实体类
 * @author fhj
 * @version 2.0.0
 * @date 2020/9/21
 */
public class ContentInformationResponse {

    /**
     * 主键id
     */
    private Long id;

    /**
     * 栏目ID
     */
    private Long columnId;

    /**
     * 栏目分类：1.市场行情；2.资讯；
     */
    private Integer type;

    /**
     * 栏目名称
     */
    private String columnName;

    /**
     * 标题
     */
    private String title;

    /**
     * 分类名称
     */
    private String categoryName;

    /**
     * 推荐标签 1-头条文章 2-轮播新闻 3-图片新闻 4-推荐阅读 5-行情推荐 6-本栏推荐
     */
    private Integer recommendLabel;

    /**
     * 排序
     */
    private Integer sort;

    /**
     * 浏览数
     */
    private Integer readCount;

    /**
     * 标签ID集合
     */
    private String labelIds;

    /**
     * 图片地址
     */
    private String imageUrl;

    /**
     * 摘要
     */
    private String digest;

    /**
     * 内容
     */
    private String content;

    /**
     * 状态 1-待上架 2-已上架 3-已下架
     */
    private Integer status;

    /**
     * 创建时间
     */
    private Long createTime;

    /**
     * 标签集合
     */
    private List<Map<String, Object>> contentLabelList;

    /**
     * 上一篇资讯
     */
    private ContentInformation lastContentLabel;

    /**
     * 下一篇资讯
     */
    private ContentInformation nextContentLabel;

    /**
     * 收藏数
     */
    private Integer collectCount;

    /**
     * 收藏状态
     */
    private Boolean collectStatus = false;

    /**
     * 收藏时间
     */
    private Long collectTime;

    /**
     * 自营商城地址
     */
    private String url;

    public ContentInformationResponse() {
    }

    public ContentInformationResponse(Long id, Long columnId, String title, Integer recommendLabel, Integer sort, List<Long> labelIds, String imageUrl, String digest, String content, Integer status, Long createTime,Integer collectCount ) {
        this.id = id;
        this.columnId = columnId;
        this.title = title;
        this.recommendLabel = recommendLabel;
        this.sort = sort;
        this.labelIds = String.valueOf(labelIds);
        this.imageUrl = imageUrl;
        this.digest = digest;
        this.content = content;
        this.status = status;
        this.createTime = createTime;
        this.collectCount = collectCount;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getColumnId() {
        return columnId;
    }

    public void setColumnId(Long columnId) {
        this.columnId = columnId;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getColumnName() {
        return columnName;
    }

    public void setColumnName(String columnName) {
        this.columnName = columnName;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getCategoryName() {
        return categoryName;
    }

    public void setCategoryName(String categoryName) {
        this.categoryName = categoryName;
    }

    public Integer getRecommendLabel() {
        return recommendLabel;
    }

    public void setRecommendLabel(Integer recommendLabel) {
        this.recommendLabel = recommendLabel;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public Integer getReadCount() {
        return readCount;
    }

    public void setReadCount(Integer readCount) {
        this.readCount = readCount;
    }

    public String getLabelIds() {
        return labelIds;
    }

    public void setLabelIds(String labelIds) {
        this.labelIds = labelIds;
    }

    public String getImageUrl() {
        return imageUrl;
    }

    public void setImageUrl(String imageUrl) {
        this.imageUrl = imageUrl;
    }

    public String getDigest() {
        return digest;
    }

    public void setDigest(String digest) {
        this.digest = digest;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Long createTime) {
        this.createTime = createTime;
    }

    public List<Map<String, Object>> getContentLabelList() {
        return contentLabelList;
    }

    public void setContentLabelList(List<Map<String, Object>> contentLabelList) {
        this.contentLabelList = contentLabelList;
    }

    public ContentInformation getLastContentLabel() {
        return lastContentLabel;
    }

    public void setLastContentLabel(ContentInformation lastContentLabel) {
        this.lastContentLabel = lastContentLabel;
    }

    public ContentInformation getNextContentLabel() {
        return nextContentLabel;
    }

    public void setNextContentLabel(ContentInformation nextContentLabel) {
        this.nextContentLabel = nextContentLabel;
    }

    public Integer getCollectCount() {
        return collectCount;
    }

    public void setCollectCount(Integer collectCount) {
        this.collectCount = collectCount;
    }

    public Boolean getCollectStatus() {
        return collectStatus;
    }

    public void setCollectStatus(Boolean collectStatus) {
        this.collectStatus = collectStatus;
    }

    public Long getCollectTime() {
        return collectTime;
    }

    public void setCollectTime(Long collectTime) {
        this.collectTime = collectTime;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }
}
